package services

import (
	"share-works/rpc/global"
	"share-works/rpc/models/dao"
)

func CreateUser(user dao.User) error {
	return global.Db.Create(&user).Error
}

func CreateWorks(works dao.Works) error {
	return global.Db.Create(&works).Error
}
